3.1870 \(\int \frac {1}{a d e+(c d^2+a e^2) x+c d e x^2} \, dx\)

Optimal. Leaf size=47 \[ \frac {\log (a e+c d x)}{c d^2-a e^2}-\frac {\log (d+e x)}{c d^2-a e^2} \]

[Out]

ln(c*d*x+a*e)/(-a*e^2+c*d^2)-ln(e*x+d)/(-a*e^2+c*d^2)

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.074, Rules used = {616, 31} \[ \frac {\log (a e+c d x)}{c d^2-a e^2}-\frac {\log (d+e x)}{c d^2-a e^2} \]

Antiderivative was successfully verified.

[In]

Int[(a*d*e + (c*d^2 + a*e^2)*x + c*d*e*x^2)^(-1),x]

[Out]

Log[a*e + c*d*x]/(c*d^2 - a*e^2) - Log[d + e*x]/(c*d^2 - a*e^2)

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 616

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Dist[c/q, Int[1/Simp
[b/2 - q/2 + c*x, x], x], x] - Dist[c/q, Int[1/Simp[b/2 + q/2 + c*x, x], x], x]] /; FreeQ[{a, b, c}, x] && NeQ
[b^2 - 4*a*c, 0] && PosQ[b^2 - 4*a*c] && PerfectSquareQ[b^2 - 4*a*c]

Rubi steps

\begin {align*} \int \frac {1}{a d e+\left (c d^2+a e^2\right ) x+c d e x^2} \, dx &=-\frac {(c d e) \int \frac {1}{c d^2+c d e x} \, dx}{c d^2-a e^2}+\frac {(c d e) \int \frac {1}{a e^2+c d e x} \, dx}{c d^2-a e^2}\\ &=\frac {\log (a e+c d x)}{c d^2-a e^2}-\frac {\log (d+e x)}{c d^2-a e^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 33, normalized size = 0.70 \[ \frac {\log (a e+c d x)-\log (d+e x)}{c d^2-a e^2} \]

Antiderivative was successfully verified.

[In]

Integrate[(a*d*e + (c*d^2 + a*e^2)*x + c*d*e*x^2)^(-1),x]

[Out]

(Log[a*e + c*d*x] - Log[d + e*x])/(c*d^2 - a*e^2)

________________________________________________________________________________________

fricas [A]  time = 1.17, size = 33, normalized size = 0.70 \[ \frac {\log \left (c d x + a e\right ) - \log \left (e x + d\right )}{c d^{2} - a e^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a*d*e+(a*e^2+c*d^2)*x+c*d*e*x^2),x, algorithm="fricas")

[Out]

(log(c*d*x + a*e) - log(e*x + d))/(c*d^2 - a*e^2)

________________________________________________________________________________________

giac [A]  time = 0.17, size = 75, normalized size = 1.60 \[ \frac {2 \, \arctan \left (\frac {2 \, c d x e + c d^{2} + a e^{2}}{\sqrt {-c^{2} d^{4} + 2 \, a c d^{2} e^{2} - a^{2} e^{4}}}\right )}{\sqrt {-c^{2} d^{4} + 2 \, a c d^{2} e^{2} - a^{2} e^{4}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a*d*e+(a*e^2+c*d^2)*x+c*d*e*x^2),x, algorithm="giac")

[Out]

2*arctan((2*c*d*x*e + c*d^2 + a*e^2)/sqrt(-c^2*d^4 + 2*a*c*d^2*e^2 - a^2*e^4))/sqrt(-c^2*d^4 + 2*a*c*d^2*e^2 -
 a^2*e^4)

________________________________________________________________________________________

maple [A]  time = 0.05, size = 48, normalized size = 1.02 \[ \frac {\ln \left (e x +d \right )}{a \,e^{2}-c \,d^{2}}-\frac {\ln \left (c d x +a e \right )}{a \,e^{2}-c \,d^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(a*d*e+(a*e^2+c*d^2)*x+c*d*e*x^2),x)

[Out]

-1/(a*e^2-c*d^2)*ln(c*d*x+a*e)+1/(a*e^2-c*d^2)*ln(e*x+d)

________________________________________________________________________________________

maxima [A]  time = 1.05, size = 47, normalized size = 1.00 \[ \frac {\log \left (c d x + a e\right )}{c d^{2} - a e^{2}} - \frac {\log \left (e x + d\right )}{c d^{2} - a e^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a*d*e+(a*e^2+c*d^2)*x+c*d*e*x^2),x, algorithm="maxima")

[Out]

log(c*d*x + a*e)/(c*d^2 - a*e^2) - log(e*x + d)/(c*d^2 - a*e^2)

________________________________________________________________________________________

mupad [B]  time = 0.09, size = 51, normalized size = 1.09 \[ \frac {\mathrm {atan}\left (\frac {2{}\mathrm {i}\,c\,d^2+2{}\mathrm {i}\,c\,e\,x\,d}{a\,e^2-c\,d^2}+1{}\mathrm {i}\right )\,2{}\mathrm {i}}{a\,e^2-c\,d^2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x*(a*e^2 + c*d^2) + a*d*e + c*d*e*x^2),x)

[Out]

(atan((c*d^2*2i + c*d*e*x*2i)/(a*e^2 - c*d^2) + 1i)*2i)/(a*e^2 - c*d^2)

________________________________________________________________________________________

sympy [B]  time = 0.37, size = 172, normalized size = 3.66 \[ \frac {\log {\left (x + \frac {- \frac {a^{2} e^{4}}{a e^{2} - c d^{2}} + \frac {2 a c d^{2} e^{2}}{a e^{2} - c d^{2}} + a e^{2} - \frac {c^{2} d^{4}}{a e^{2} - c d^{2}} + c d^{2}}{2 c d e} \right )}}{a e^{2} - c d^{2}} - \frac {\log {\left (x + \frac {\frac {a^{2} e^{4}}{a e^{2} - c d^{2}} - \frac {2 a c d^{2} e^{2}}{a e^{2} - c d^{2}} + a e^{2} + \frac {c^{2} d^{4}}{a e^{2} - c d^{2}} + c d^{2}}{2 c d e} \right )}}{a e^{2} - c d^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a*d*e+(a*e**2+c*d**2)*x+c*d*e*x**2),x)

[Out]

log(x + (-a**2*e**4/(a*e**2 - c*d**2) + 2*a*c*d**2*e**2/(a*e**2 - c*d**2) + a*e**2 - c**2*d**4/(a*e**2 - c*d**
2) + c*d**2)/(2*c*d*e))/(a*e**2 - c*d**2) - log(x + (a**2*e**4/(a*e**2 - c*d**2) - 2*a*c*d**2*e**2/(a*e**2 - c
*d**2) + a*e**2 + c**2*d**4/(a*e**2 - c*d**2) + c*d**2)/(2*c*d*e))/(a*e**2 - c*d**2)

________________________________________________________________________________________